package com.zc.study.thread.多线程第三章节.thread3_3_2;

public class ThreadB extends Thread {
    @Override
    public void run() {
        super.run();
        for (int i=0;i<100;i++){
            Thread.currentThread().setName("B");
            Tools.t1.set(Thread.currentThread().getName()+(i+1));
            System.out.println(Tools.t1.get());
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
